import 'package:json_annotation/json_annotation.dart';

part 'bt_user_info.g.dart';

@JsonSerializable()
class BtUserInfo {
  final String userId;
  final int userType;
  final String nickname;
  final String avatarUrl;
  final String avatarThumbUrl;
  final String? loginPkgName;
  final String? country;
  final int gender;
  final int age;
  final String? birthday;
  final String? pkgName;
  final int? availableCoins; // 剩余金币个数

  const BtUserInfo({
    required this.userId,
    required this.userType,
    required this.nickname,
    required this.avatarUrl,
    required this.avatarThumbUrl,
    required this.loginPkgName,
    required this.country,
    required this.gender,
    required this.age,
    required this.birthday,
    required this.pkgName,
    required this.availableCoins,
  });

  factory BtUserInfo.fromJson(Map<String, dynamic> json) => _$BtUserInfoFromJson(json);

  Map<String, dynamic> toJson() => _$BtUserInfoToJson(this);
}
